import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import ProjectProcessPieChart from "./index";

const meta = {
  title: "饼图/可信项目进度-ProjectProcessPieChart",
  component: ProjectProcessPieChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#031857", height: "273px", width: "445px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof ProjectProcessPieChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      {
        name: "正常",
        amount: 80,
      },
      {
        name: "超前",
        amount: 13,
      },
      {
        name: "预期",
        amount: 7,
      },
    ],
  },
};
